import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
let state = {
  otherData: {
    title: '批量生产',
    radio: true,
    url: '/production/productionTaskList/updateState'
  },
  //可修改字段
  columnList: ['color', 'numberGenerated', 'note'],
  columns: [{
      title: '生产号',
      dataIndex: 'odd',
      align: 'center',
      width: 180,
      scopedSlots: {
        customRender: 'odd'
      },
    }, {
      title: '下单日期',
      dataIndex: 'date',
      align: 'center',
      width: 180,
      scopedSlots: {
        customRender: 'date'
      },
    }, {
      title: '客户',
      dataIndex: 'customerNumber',
      width: 150,
      align: 'center',
      scopedSlots: {
        customRender: 'customerNumber'
      },
    },
    {
      title: '颜色',
      dataIndex: 'color',
      align: 'center',
      scopedSlots: {
        customRender: 'color'
      },
    },
    {
      title: '实际生成数量',
      dataIndex: 'numberGenerated',
      align: 'center',
      scopedSlots: {
        customRender: 'numberGenerated'
      },
    },
    {
      title: '备注',
      dataIndex: 'note',
      width: 160,
      align: 'center',
      scopedSlots: {
        customRender: 'note'
      },
    },
    {
      title: '操作',
      dataIndex: 'operation',
      width: 160,
      align: 'center',
      scopedSlots: {
        customRender: 'operation'
      },
    }
  ]
}
let mutations = {}
let actions = {}

export default {
  state,
  mutations,
  actions
}